package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品管理对象 sys_shop_product
 * 
 * @author yangqg
 * @date 2021-11-30
 */
public class SysShopProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    private Long productid;

    /** 商品分类id */
    @Excel(name = "商品分类id")
    private Long cateid;

    /** 商品标题 */
    @Excel(name = "商品标题")
    private String title;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String description;

    /** 库存 */
    @Excel(name = "库存")
    private Long num;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 封面图 */
    @Excel(name = "封面图")
    private String cover;

    /** 图片集合 */
    @Excel(name = "图片集合")
    private String pics;

    /** 促销价格 */
    @Excel(name = "促销价格")
    private BigDecimal saleprice;

    /** 是否上架 */
    @Excel(name = "是否上架")
    private String ison;

    public void setProductid(Long productid) 
    {
        this.productid = productid;
    }

    public Long getProductid() 
    {
        return productid;
    }
    public void setCateid(Long cateid) 
    {
        this.cateid = cateid;
    }

    public Long getCateid() 
    {
        return cateid;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }
    public void setPics(String pics) 
    {
        this.pics = pics;
    }

    public String getPics() 
    {
        return pics;
    }

    public void setSaleprice(BigDecimal saleprice) 
    {
        this.saleprice = saleprice;
    }

    public BigDecimal getSaleprice() 
    {
        return saleprice;
    }

    public void setIson(String ison) 
    {
        this.ison = ison;
    }

    public String getIson() 
    {
        return ison;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productid", getProductid())
            .append("cateid", getCateid())
            .append("title", getTitle())
            .append("description", getDescription())
            .append("num", getNum())
            .append("price", getPrice())
            .append("cover", getCover())
            .append("pics", getPics())
            .append("saleprice", getSaleprice())
            .append("ison", getIson())
            .append("createtime",getCreateTime())
            .toString();
    }
}
